package org.jeecg.modules.wms.goods.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;
import org.jeecg.common.constant.ProvinceCityArea;
import org.jeecg.common.util.SpringContextUtils;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 商品信息表
 * @Author: jeecg-boot
 * @Date:   2025-09-03
 * @Version: V1.0
 */
@Data
@TableName("wms_products")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(description="商品信息表")
public class WmsProducts implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键")
    private String id;
	/**创建人*/
    @Schema(description = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建日期")
    private Date createTime;
	/**更新人*/
    @Schema(description = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @Schema(description = "所属部门")
    private String sysOrgCode;
	/**商品名称*/
	@Excel(name = "商品名称", width = 15)
    @Schema(description = "商品名称")
    private String productName;
	/**货主id*/
	@Excel(name = "货主id", width = 15)
    @Schema(description = "货主id")
    private String ownerId;
	/**商品编码*/
	@Excel(name = "商品编码", width = 15)
    @Schema(description = "商品编码")
    private String productCode;
	/**商品条码*/
	@Excel(name = "商品条码", width = 15)
    @Schema(description = "商品条码")
    private String productBarcode;
	/**宽*/
	@Excel(name = "宽", width = 15)
    @Schema(description = "宽")
    private Double width;
	/**长*/
	@Excel(name = "长", width = 15)
    @Schema(description = "长")
    private Double length;
	/**高*/
	@Excel(name = "高", width = 15)
    @Schema(description = "高")
    private Double height;
	/**体积*/
	@Excel(name = "体积", width = 15)
    @Schema(description = "体积")
    private Double volume;
	/**毛重*/
	@Excel(name = "毛重", width = 15)
    @Schema(description = "毛重")
    private Double grossWeight;
	/**净重*/
	@Excel(name = "净重", width = 15)
    @Schema(description = "净重")
    private Double netWeight;
	/**商品一级分类id*/
	@Excel(name = "商品一级分类id", width = 15)
    @Schema(description = "商品一级分类id")
    private String categoryId;
	/**包装规格*/
	@Excel(name = "包装规格", width = 15)
    @Schema(description = "包装规格")
    private String packagingSpec;
	/**养护周期(天)*/
	@Excel(name = "养护周期(天)", width = 15)
    @Schema(description = "养护周期(天)")
    private Integer maintenanceCycle;
	/**保质期(天)*/
	@Excel(name = "保质期(天)", width = 15)
    @Schema(description = "保质期(天)")
    private Integer shelfLife;
	/**计量单位*/
	@Excel(name = "计量单位", width = 15)
    @Schema(description = "计量单位")
    private String unit;
	/**是否保质期管控*/
	@Excel(name = "是否保质期管控", width = 15)
    @Schema(description = "是否保质期管控")
    private Integer isExpiryControlled;
	/**状态*/
	@Excel(name = "状态", width = 15, dicCode = "dict_item_status")
	@Dict(dicCode = "dict_item_status")
    @Schema(description = "状态")
    private String status;
	/**供应商条码*/
	@Excel(name = "供应商条码", width = 15)
    @Schema(description = "供应商条码")
    private String supplierBarcode;
	/**商品规格*/
	@Excel(name = "商品规格", width = 15)
    @Schema(description = "商品规格")
    private String productSpec;
	/**商品批次*/
	@Excel(name = "商品批次", width = 15)
    @Schema(description = "商品批次")
    private String productBatch;
	/**商品品牌*/
	@Excel(name = "商品品牌", width = 15)
    @Schema(description = "商品品牌")
    private String productBrand;
    /**货主名称 */
    @TableField(exist = false)
    private String ownerName;
    /**商品类别*/
    @TableField(exist = false)
    private String categoryName;
    /**商品类别*/
    @TableField(exist = false)
    private String productBrandName;
}
